package com.minivision.fdiot.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;

import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 操作日志信息实体类
 * @author hughzhao
 * @2017年5月22日
 */
@Entity
@Setter
@Getter
@ToString
@EntityListeners(AuditingEntityListener.class)
public class OpLog extends BaseEntity {

  private static final long serialVersionUID = -8842867810600274710L;
  
  @ApiModelProperty(value = "请求IP")
  private String ip;
  @ApiModelProperty(value = "操作模块")
  private String module;
  @Column(nullable = false)
  @ApiModelProperty(value = "操作内容")
  private String operation;
  
  @Column(length = 1000)
  @ApiModelProperty(value = "请求参数")
  private String request;
  @Column(length = 1000)
  @ApiModelProperty(value = "响应数据")
  private String response;

}
